package com.niodata.dp.monitor.components.task.dao;

import com.niodata.dp.monitor.sharelib.entity.monitor.task.TaskExecDayCount;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;

@Mapper
public interface TaskExecDayCountMapper {

  public void insert(@Param("taskExecDayCountList") List<TaskExecDayCount> taskExecDayCountList);

  public String getMaxDataTime();

  @ResultMap("taskExecDayCountResultMap")
  public List<TaskExecDayCount> getExecDayCount(
        @Param("ownerId") long ownerId, @Param("ids") List<Long> ids,
        @Param("endTime") String endTime);
}
